home *** CD-ROM | disk | FTP | other *** search
- #ifndef __PROTOTYPES__
- #define __PROTOTYPES__
-
-
-
- // System Includes
- #ifndef __WINDOWS__
- #include <Windows.h>
- #endif
-
-
-
-
-
- // Application Includes
- #ifndef __BAREBONES__
- #include "BareBones.h"
- #endif
-
-
-
-
-
- // BareBones.c
- void main ( void );
-
-
- // Initialize.c
- void InitToolbox ( void );
- void InitApplication ( void );
-
-
- // AppleEventStuff.c
- OSErr InstallAppleEventHandlers ( void );
-
-
- // Events.c
- void EventLoop ( void );
-
-
- // Windows.c
- void CreateWindow ( void );
- WindowRef DestroyWindow ( WindowRef windowRef );
- OSErr CreateListWindow ( WindowRef* windowRef, tContentsProcPtr contentsProc, void* refCon );
- void DoActivate ( EventRecord* theEvent );
- void DoUpdate ( EventRecord* theEvent );
- void DoContentClick ( WindowRef theWindow, EventRecord* theEvent );
- void DoDragWindow ( WindowRef theWindow, EventRecord* theEvent );
-
- void AddToListContent ( StringPtr pStr );
- OSErr RemoveNotification( void );
-
-
- // Menus.c
- void MenuDispatch ( SInt32 menuResult );
-
-
- // Lists.c
- Boolean HandleListClick ( WindowRef theWindow, EventRecord* event );
- void AddToList ( ListRef theList, Str255 theString );
- void GetListRect ( ListRef theList, Rect* theRect );
- void LocalToGlobalRect ( Rect* theRect );
-
-
- // Utilities.c
- StringPtr CopyPStr ( Str255 inSourceStr, StringPtr outDestStr, SInt16 inDestSize );
- StringPtr ConcatPStr ( Str255 ioFirstStr, Str255 inSecondStr, SInt16 inDestSize );
- void OSTypeToPStr ( OSType inOSType, StringPtr outString );
- void PStrToOSType ( StringPtr inString, OSType* outOSType );
- void AlertUser ( short messageCode, short errorNum, StringPtr theString );
- void LocalToGlobalRect ( Rect* theRect );
- Boolean IsMovableModal ( WindowRef theWindow );
-
- #if DEBUGGING
- void DebugStrNum ( Str255 str, SInt32 num );
- #endif
-
-
- #endif
-